<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=0">
    <title>Title</title>
    <link rel="stylesheet" href="layui/css/layui.css">
    <link rel="stylesheet" href="css/main.css">
</head>
<body style="background:#fff" id="loginbody">
<div class="loginfram">
    <h1 class="logo"><img src="img/logo.png" alt=""></h1>
    <form action="" id="form" class="layui-form">
        <div class="layui-form-item">
            <img class="iconfont fl" src="img/wd.svg" style="width:24px;height:24px;margin:11px;">
            <div class="layui-input-block">
                <input type="text" name="name" lay-verify="required" autocomplete="off" placeholder="请输入账号" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <img class="iconfont fl" src="img/mm.svg" style="width:24px;height:24px;margin:11px;">
            <div class="layui-input-block">
                <input type="password" name="password" lay-verify="required" autocomplete="off" placeholder="请输入密码" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item" style="border:none;background:#fff">
            <button class="layui-btn" lay-submit="" lay-filter="demo1">登  录</button>
        </div>
    </form>
</div>
</body>
<script type="text/javascript" src="js/jquery.js"></script>
<script src="http://www.jq22.com/demo/jquery-xxdf20161120/js/more-starts.js"></script>
<script type="text/javascript" src="layui/layui.js"></script>
<script type="text/javascript" src="js/grobal.js"></script>
<script>
    layui.use(['form','layer','jquery','laypage','laydate'],function() {
        var form = layui.form(),
            layer = parent.layer === undefined ? layui.layer : parent.layer,
            laypage = layui.laypage,
            $ = layui.jquery,
            laydate = layui.laydate;
        form.on('submit(demo1)', function(data) {
            var dataT = data.field;
            window.location.href="index.html"
            return false
        })
    })
</script>
</html>